<fieldset class="layui-elem-field layui-field-title">
<legend>公司信息</legend>
<table class='wst-form wst-box-top'>
  <tr>
      <th width='150'>执照类型：</th>
      <td>
          <select id='businessLicenceType' class='ipt'>
             {volist name=":WSTDatas('LICENSE_TYPE')" id='vo'}
             <option value='{$vo["dataVal"]}' {if $object['businessLicenceType']==$vo["dataVal"]}selected{/if}>{$vo["dataName"]}</option>
             {/volist}
          </select>
      </td>
  </tr>
  <tr>
      <th valign="top">营业执照注册号：</th>
      <td><input type='text' id='businessLicence' class='ipt' value="{$object['businessLicence']}"/><br/><span style='color:gray;'>请按照营业执照上登记的完整名称填写</span></td>
  </tr>
  <tr>
      <th valign="top">法定代表人姓名：</th>
      <td>
          <input type='text' id='legalPersonName' class='ipt' value="{$object['legalPersonName']}"/>
          <br/><span style='color:gray;'>请按照营业执照上登记的法人填写</span>
      </td>
  </tr>
  <tr>
      <th>营业执照所在地：</th>
      <td>
            <select id="carea_0" class='j-careas' level="0" onchange="WST.ITAreas({id:'carea_0',val:this.value,isRequire:false,className:'j-careas'});">
            <option value="">-请选择-</option>
            {foreach $areaList as $v}
              <option value="{$v['areaId']}">{$v['areaName']}</option>
            {/foreach}
          </select>
      </td>
  </tr>
  <tr>
      <th>营业执照详细地址：</th>
      <td>
          <input type='text' id='licenseAddress' class='ipt' style='width:550px' value="{$object['licenseAddress']}"/>
      </td>
  </tr>
  <tr>
      <th>成立日期：</th>
      <td>
          <input type='text' id='establishmentDate' readonly class='ipt laydate-icon' value="{$object['establishmentDate']}"/>
      </td>
  </tr>
  <tr>
      <th>营业期限：</th>
      <td>
          <input type='text' id='businessStartDate' readonly class='ipt laydate-icon' value="{$object['businessStartDate']}"/> - 
          <input type='text' id='businessEndDate' {if $object['isLongbusinessDate']==1}style='display:none'{/if} readonly class='ipt laydate-icon' value="{$object['businessEndDate']}"/>&nbsp;&nbsp;&nbsp;
          <label><input type='checkbox' name='isLongbusinessDate' id='isLongbusinessDate' class='ipt' onclick='WST.showHide(this.checked?0:1,"#businessEndDate")' value='1' {if $object['isLongbusinessDate']==1}checked{/if}/>长期</label>
      </td>
  </tr>
  <tr>
      <th>注册资本（万元）：</th>
      <td>
          <input type='text' id='registeredCapital' class='ipt' onkeyup="javascript:WST.isChinese(this,1)" onkeypress="return WST.isNumberKey(event)" value="{$object['registeredCapital']}"/>
      </td>
  </tr>
  <tr>
      <th>经营范围：</th>
      <td>
             <textarea id='empiricalRange' class='ipt' style='width:550px;height:150px;'>{$object['empiricalRange']}</textarea>
      </td>
  </tr>
  <tr>
      <th>法人代表证件类型：</th>
      <td>
          <select id='legalCertificateType' class='ipt'>
             {volist name=":WSTDatas('LEGAL_LICENSE')" id='vo'}
             <option value='{$vo["dataVal"]}' {if $object['legalCertificateType']==$vo['dataVal']}{/if}>{$vo["dataName"]}</option>
             {/volist}
          </select>
      </td>
  </tr>
  <tr>
      <th>法定代表人证件号：</th>
      <td>
          <input type='text' id='legalCertificate' class='ipt' value="{$object['legalCertificate']}"/>
      </td>
  </tr>
  <tr>
      <th>有效期：</th>
      <td>
          <input type='text' id='legalCertificateStartDate' readonly class='ipt laydate-icon' value="{$object['legalCertificateStartDate']}"/> - 
          <input type='text' id='legalCertificateEndDate' readonly value="{$object['legalCertificateEndDate']}" {if $object['isLonglegalCertificateDate']==1}style='display:none'{/if} class='ipt laydate-icon' />&nbsp;&nbsp;&nbsp;
          <label><input type='checkbox' name='isLonglegalCertificateDate' id='isLonglegalCertificateDate' class='ipt' onclick='WST.showHide(this.checked?0:1,"#legalCertificateEndDate")' value='1' {if $object['isLonglegalCertificateDate']==1}checked{/if}/>长期</label>
          
      </td>
  </tr>
  <tr>
      <th>法人证件电子版：</th>
      <td>
          <input type='hidden' id='legalCertificateImg' class='ipt' value='{$object['legalCertificateImg']}'/>
          <div id='legalCertificateImgPicker'>请上传法人证件电子版</div>
          <span id='legalCertificateImgMsg'></span>
          <a id='legalCertificateImgPreview_a' href='__RESOURCE_PATH__/{$object['legalCertificateImg']}' target='_blank'>
          <img id='legalCertificateImgPreview' src='__RESOURCE_PATH__/{$object['legalCertificateImg']}' {if $object['legalCertificateImg'] ==''}style='display:none'{/if} width='150'>
          </a>
      </td>
  </tr>
  <tr>
      <th>营业执照电子版：</th>
      <td>
          <input type='hidden' id='businessLicenceImg' class='ipt' value='{$object['businessLicenceImg']}'/>
          <div id='businessLicenceImgPicker'>请上传营业执照电子版</div>
          <span id='businessLicenceImgMsg'></span>
          <a id='businessLicenceImgPreview_a' href='__RESOURCE_PATH__/{$object['businessLicenceImg']}' target='_blank'>
          <img id='businessLicenceImgPreview' src='__RESOURCE_PATH__/{$object['businessLicenceImg']}' {if $object['businessLicenceImg'] ==''}style='display:none'{/if} width='150'>
          </a>
      </td>
  </tr>
  <tr>
      <th>银行开户许可证电子版：</th>
      <td>
          <input type='hidden' id='bankAccountPermitImg' class='ipt' value='{$object['bankAccountPermitImg']}'/>
          <div id='bankAccountPermitImgPicker'>请上传银行开户许可证电子版</div>
          <span id='bankAccountPermitImgMsg'></span>
          <a id='bankAccountPermitImgPreview_a' href='__RESOURCE_PATH__/{$object['bankAccountPermitImg']}' target='_blank'>
          <img id='bankAccountPermitImgPreview' src='__RESOURCE_PATH__/{$object['bankAccountPermitImg']}' {if $object['bankAccountPermitImg'] ==''}style='display:none'{/if} width='150'>
          </a>
      </td>
  </tr>
  </table>
</fieldset>
<fieldset class="layui-elem-field layui-field-title">
<legend>组织机构代码证</legend>
<table class='wst-form wst-box-top'>
  <tr>
      <th width='150'>组织机构代码：</th>
      <td>
          <input type='text' id='organizationCode' class='ipt' value="{$object['organizationCode']}"/>
      </td>
  </tr>
  <tr>
      <th>组织机构代码证有效期：</th>
      <td>
          <input type='text' id='organizationCodeStartDate' readonly class='ipt laydate-icon' value="{$object['organizationCodeStartDate']}"/> - 
          <input type='text' id='organizationCodeEndDate' readonly value="{$object['organizationCodeEndDate']}" {if $object['isLongOrganizationCodeDate']==1}style='display:none'{/if} class='ipt laydate-icon'/>&nbsp;&nbsp;&nbsp;
          <label><input type='checkbox' name='isLongOrganizationCodeDate' id='isLongOrganizationCodeDate' class='ipt' onclick='WST.showHide(this.checked?0:1,"#organizationCodeEndDate")' value='1' {if $object['isLongOrganizationCodeDate']==1}checked{/if}/>长期</label>
      </td>
  </tr>
  <tr>
      <th valign="top">组织机构代码证电子版：</th>
      <td>
          <span style='color:gray;'>复印件需加盖公司红章扫描上传，三证合一的此处请上传营业执照电子版</span><br/>
          <input type='hidden' id='organizationCodeImg' class='ipt' value='{$object['organizationCodeImg']}'/>
          <div id='organizationCodeImgPicker'>请上传组织机构代码证电子版</div>
          <span id='organizationCodeImgMsg'></span>
          <a id='organizationCodeImgPreview_a' href='__RESOURCE_PATH__/{$object['organizationCodeImg']}' target='_blank'>
          <img id='organizationCodeImgPreview' src='__RESOURCE_PATH__/{$object['organizationCodeImg']}' {if $object['organizationCodeImg'] ==''}style='display:none'{/if} width='150'>
          </a>
      </td>
  </tr>
  <tr>
      <td colspan='2' align='center'>
      	 <button type="button"  class='btn btn-primary btn-mright' onclick="javascript:save({$p},'{$src}')"><i class="fa fa-check"></i>保存</button>
      	 <button type="button"  class='btn' onclick="javascript:location.href='{:Url(\'admin/shops/\'.$src,\'p=\'.$p)}'"><i class="fa fa-angle-double-left"></i>返回</button>
      </td>
  </tr>
</table>
</fieldset>